package gof.com.yew.template;

public class TemplateDemo {
	
	public static void main(String[] args) {
		BankTemplateMethod btm = new DrawMoney();
		btm.doProcess("张三");
		System.out.println("-------------------------------------------------");
		btm = new BankTemplateMethod() {
			@Override
			public void transaction(String name) {
				System.out.println(name+"存钱");
			}
		};
		
		btm.doProcess("李四");
	}

}
